@extends('admin.layout')

@section('content')
    <div class="console-content">
        <div class="page-header">
            <h2 id="nav">@if(isset($category)) 编辑分类 @else 添加分类 @endif</h2>
        </div>
        <div class="well bs-component">
            @form(['url' => isset($category)? admin_url('trade/updatecate/'.$category->id): admin_url('trade/createcate'), 'method' => 'post', 'class' => 'form-horizontal'])
            @col_input('text','cate_name',$errors,'*分类名称',isset($category) ? $category->cate_name : old('cate_name'), ['placeholder' => '产品名称'])

            @col_submit('提交')
            @endform
        </div>
    </div>
@endsection